//
//  RepaymentscheduleViewController.m
//  TenThousand
//
//  Created by 我的 on 16/6/20.
//  Copyright © 2016年 baixue. All rights reserved.
//

#import "RepaymentscheduleViewController.h"
#import "RepaymentTableViewCell.h"

@interface RepaymentscheduleViewController ()<UITableViewDelegate,UITableViewDataSource>

@end

@implementation RepaymentscheduleViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor colorWithRed:0.95 green:0.95 blue:0.95 alpha:1.00];
    
    [self repayTableView];
   
}
- (UITableView *)repayTableView{
    _repayTableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, Screen_Width, Screen_Height) style:UITableViewStylePlain];
    _repayTableView.dataSource = self;
    _repayTableView.delegate = self;
    _repayTableView.backgroundColor = [UIColor colorWithRed:0.95 green:0.95 blue:0.95 alpha:1.00];
    [self.view addSubview:_repayTableView];
    return _repayTableView;
}


- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 3;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    RepaymentTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"REPAYMENTCELL"];
    if (cell == nil) {
        cell = [[[NSBundle mainBundle] loadNibNamed:@"RepaymentTableViewCell" owner:nil options:nil] lastObject];
    }
    cell.backView.layer.shadowColor = [UIColor colorWithRed:0.90 green:0.90 blue:0.90 alpha:1.00].CGColor;//shadowColor阴影颜色
    cell.backView.layer.shadowOffset = CGSizeMake(0,0);//shadowOffset阴影偏移，默认(0, -3),这个跟shadowRadius配合使用
    cell.backView.layer.shadowOpacity = 1;//阴影透明度，默认0
    cell.backView.layer.shadowRadius = 3;//阴影半径，默认3
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    return cell;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return 140;
}




@end
